{include file="public/header" /}</head>
<body class="layui-anim">
<div class="x-nav layui-row">
	<span class="layui-breadcrumb layui-col-md9 layui-col-sm9">
		<a href="javascript:;">{$_page_navi.1.title}</a>
		<!-- {if $_page_navi.0}<a href="javascript:;">{$_page_navi.0.NavName}</a>{/if}
		{if $_page_navi.1}<a><cite>{$_page_navi.1.NavName}</cite></a>{/if} -->
	</span>
	<a class="layui-btn layui-btn-small" style="float:right" href="javascript:location.replace(location.href);" title="刷新"><i class="layui-icon">&#xe9aa;</i></a>
</div>
<div class="x-body">
	<blockquote class="layui-elem-quote layui-clear " style="padding: 5px;line-height: 38px;">
		<span style="font-size: 16px;"><i class="layui-icon">&#xe653;</i>&nbsp;{$_page_navi.1.NavName}</span>
		<form class="layui-form layui-col-md8 x-so layui-form-pane x-right" style="margin: 0;text-align: right;">
			<input class="layui-input" placeholder="请输入姓名/编号" name="keyword" value="{$Request.param.keyword}"/>
			<input class="layui-input date_range" placeholder="选择日期" name="start" value="{$Request.param.start}" style="width: 20%"/>
			{if $Request.param.type == 1}
			<div class="layui-input-inline">
				<select name="type_t">
					<option value="">账户类型</option>
					<option value="wallet" {if $Request.param.type_t=="wallet"}selected{/if}>电子钱包</option>
					<option value="usdt" {if $Request.param.type_t=="usdt"}selected{/if}>USDT</option>
					<option value="agent_bonus" {if $Request.param.type_t=="agent_bonus"}selected{/if}>代理佣金</option>
				</select>
			</div>
			<div class="layui-input-inline">
				<select name="intro">
					<option value="">转入转出</option>
					<option value="转入" {if $Request.param.intro=="转入"}selected{/if}>转入</option>
					<option value="转出" {if $Request.param.intro=="转出"}selected{/if}>转出</option>
				</select>
			</div>
			{elseif $Request.param.type == 'vip_bonus'}
			<div class="layui-input-inline">
				<select name="category">
					<option value="">奖金类型</option>
					{foreach name="category" key="key" item="vo" }
					<option value="{$vo}" {if $Request.param.category == $key}selected{/if}>{$vo}</option>
					{/foreach}

				</select>
			</div>

			{/if}
			<button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
			{if $Request.param.keyword || $Request.param.start || $Request.param.type_t || $Request.param.intro || $Request.param.category}
			<a href="{:url('account/index',['type'=>$Request.param.type])}" class="layui-btn layui-bg-blue" >撤销搜索</a>
			{/if}
		</form>
	</blockquote>
	<xblock>
		<!-- <a class="layui-btn" target="_blank" href="{:URL(request()->controller().'/export',$Request.param)}"><i class="layui-icon layui-icon-download-circle"></i>Excel</a> -->
		{if $Request.param.type ==4}
		<button class="layui-btn" title="发放分红" onclick="zhiju_show('统计静态分红','{:url(\'account/add_bonus\')}',680,370)">统计静态分红</button>
		{/if}
		<span class="x-right" style="line-height:40px">共有数据：{$count} 条</span>
	</xblock>
	<table class="layui-table layui-form">
		<thead>
		<tr>
			<th>ID</th>
			<th>用户姓名</th>
			<th>用户编号</th>
			<th>时间</th>
			<!-- <th>变更前</th> -->
			<th>金额</th>
			<!-- <th>变更后</th> -->
			<th>账户类型</th>
			<th>说明</th>
			{switch name="$Request.param.type"}
			{case value="1"}
			<th>对方姓名</th>
			<th>对方编号</th>
			{/case}
			{case value="5"}
			<th>来源会员姓名</th>
			<th>来源会员编号</th>
			{/case}
			{/switch}
			<th>备注</th>
		</tr>
		</thead>
		<tbody>
		{volist name="list" id="v"}
		<tr class="data_line" data_id="{$v.id}">
			<td>{$v.id}</td>
			<td>{$v.name}</td>
			<td>{$v.code}</td>
			<td>{:date('Y-m-d H:i:s',$v.create_time)}</td>
			<!-- <td>{$v.bonus}</td> -->

			<td>
				{if $v.fx == '+'}
				<span style="color:#008800;">{$v.fx} {$v.amount}</span>
				{else}
				<span style="color:red;">{$v.fx} {$v.amount}</span>
				{/if}


			</td>
			<!-- <td>{$v.balance}</td> -->

			<td><?php echo get_pay_way($v['type']);?></td>

			<td>{$v.intro}</td>
			{if $Request.param.type =='1' || $Request.param.type =='5'}
			<td>{$v.r_nickname}</td>
			<td>{$v.r_code}</td>

			{/if}
			<td>{$v.msg?$v.msg:'-'}</td>
		</tr>
		{/volist}
		</tbody>
	</table>
	<div class="page"><div>{$list->render()}</div></div>
</div>
</body>
</html>